package sgi.message;
/**sets query and variables for receiving tariffs*/
public class MessageGetTariff extends Message {
	
	private static final long serialVersionUID = 1L;

	public  enum tariff {image,sample,location_time_subscription,image_pack_subscription,
		infrastracture_layer_subscription,commerce_layer_subscription
	}
	
	private tariff requested;
	private int value;

	public MessageGetTariff(tariff requested) {
		super("select * from tariff where pending = 1");
		this.setRequested(requested);
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public int getRequested() {
		return requested.ordinal();
	}

	public void setRequested(tariff requested) {
		this.requested = requested;
	}

}
